package com.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.product.entity.AttrGroupEntity;
import com.gulimall.product.vo.AttrGroupRelationVo;
import com.gulimall.product.vo.AttrGroupWIthAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author 王半仙
 * @email 1979526040@qq.com
 * @date 2022-11-22 22:14:33
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 删除分组关联的属性
     * @param relationIds
     */
    void deleteAttrGroupRelations(List<AttrGroupRelationVo> relationIds);

    /**
     * 根据分类id获取属性分组及其关联的属性信息
     * @param catelogId
     * @return
     */
    List<AttrGroupWIthAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

